<?php

include_once '../../Core/Conexion.php';
include_once '../../Core/ControladorSet.php';
include_once '../../Core/InterfazDatos.php';
///****
include_once '../entidades/Categoria.php';

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of nuevaInstitucion
 *
 * @author cHr15t14n
 */
class nuevo extends ControladorSet {

    public function buscarValores() {
        $cadena="";
        $entidad=new Categoria("","","");
        $consulta=$this->conexion->consultaTabla($entidad);
        $fila=  mysql_fetch_array($consulta);
        do
        {
            $cadena=$cadena."<option value='".$fila[0]."'>".$fila[1]."</option>";
            
        }while($fila=  mysql_fetch_array($consulta));
        
        $this->diccionario['categoria']=$cadena;
    }

    public function setDiccionario() {
          $this->diccionario=array(
              "categoria" => "vacio",              
          );
    }

    public function setValorSesion() {
        $this->valorSesion = array("admin", "", "");
    }

//put your code here
}
$controlador = new nuevo('nuevoVista.php');
$controlador->rederizarPagina();
